#!/bin/bash

set -e

source ../secrets_info.sh

# gpt3.5 文字对话
curl --request POST \
  --url $GPT3_5_URL_BASE/chat/completions \
  --header "Authorization: Bearer $GPT3_5_API_KEY" \
  --header 'content-type: application/json' \
  --data '{
    "model": "gpt-3.5-turbo-1106",
    "messages": [
        {
            "role": "system",
            "content": "say 1"
        }
    ]
}'

# gpt4 文字对话
# curl --request POST \
#   --url $GPT4_URL_BASE/chat/completions \
#   --header "Authorization: Bearer $GPT4_API_KEY" \
#   --header 'content-type: application/json' \
#   --data '{
#     "model": "gpt-3.5-turbo-1106",
#     "messages": [
#         {
#             "role": "system",
#             "content": "say 1"
#         }
#     ]
# }'

# gpt4 画图
# curl --request POST \
#   --url $GPT4_URL_BASE/images/generations \
#   --header "Authorization: Bearer $GPT4_API_KEY" \
#   --header 'content-type: application/json' \
#   --data '{
#   "model": "dall-e-3",
#   "prompt": "A cute baby sea otter",
#   "n": 1,
#   "size": "1024x1024"
# }'

# gpt4 文字转语音
# curl --request POST \
#   --url $GPT4_URL_BASE/audio/speech \
#   --header "Authorization: Bearer $GPT4_API_KEY" \
#   --header 'Content-Type: application/json' \
#   --data '{
#   "model": "tts-1",
#   "input": "这里是语音转文字模型",
#   "voice": "alloy"
# }' --output "out.m4a"

echo ""

